<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="js/vue.js"></script>
    <div id="app" >
        {{counter}}
        <cpn :></cpn>
    </div>

    <script>

        const cpn = {
            template: `
            <div>
                <button @click="recrease">+</button>
                <button @click="decrease">-</button>
            </div>
        `,
        data(){
            return{
                cpncounter:0
            }
        },
        props:[],
        method:{
            recrease(){

            },
            decrease(){

            }
        }
        }

        var vm = new Vue({
            el: "#app",
            data: {
                counter:0
            },
            components:{
                cpn
            }
        })
    </script>
</body>

</html>